﻿@model DropDown
@{
    // get config object
    var configObject = Model.GetConfigObject<DropDownConfigObject>();
    
    // set items
    Model.SetItems(configObject);    
    
    // get property name start
    var propertyName = Model.PropertyNameStart + ".SavedValue";
}
<p>
    <label>@configObject.LabelText</label>
    @Html.DropDownList(propertyName, Model.DropDownListItems)
</p>
